package evan.zhang.flags;

import java.io.IOException;

import android.app.Application;
import android.app.ProgressDialog;
import android.content.res.Resources;
import android.os.Handler;
import android.os.Message;
import android.util.Log;

public class FlagsContext extends Application {

	private final static String tag = "FlagsOnMap::FlagsContext";
	private Flags flags;
	private FlagsBalloonItemizedOverlay flagsOverlay;
	//private ProgressDialog loadDialog;
	@Override
	public void onCreate() {
		super.onCreate();
		Log.d(tag,"onCreate() is called");
		flags = new Flags(this.getResources());
		flagsOverlay = new FlagsBalloonItemizedOverlay(this.getResources().getDrawable(R.drawable.star),this);  
	}
	
	
	 @Override
	  public void onLowMemory() {
	    super.onLowMemory();
	    Log.d(tag,"onLowMemory() is called");
	  }
	 
	 @Override
	 public void onTerminate() {
		 super.onTerminate();
		 Log.d(tag,"onTerminate() is called");
	 }
	
	public Flags getFlags() {
		Log.d(tag, "getFlags() is called");
		return this.flags;
	}
	
	public FlagsBalloonItemizedOverlay getFlagsOverlay() {
		return this.flagsOverlay;
	}
	
	

}
